import moment from "moment";
export function timefmt(time) {
  return moment(time).format("YYYY/M/DD HH:mm:ss");
}

export const FilterPlugin = Vue => {
  if (FilterPlugin.installed) return;
  FilterPlugin.installed = true;
  Vue.filter("timefmt", timefmt);
};
